﻿using Leo.Core.AutoReponseWarpper.Models;
using Microsoft.Extensions.DependencyInjection;

namespace Leo.Core.AutoReponseWarpper
{
    public static class AutoWrapperServiceCollectionExtensions
    {
        public static IServiceCollection AddAutoWrapper(this IServiceCollection services)
        {
            services.AddSingleton(typeof(IAPIDataResult<>), typeof(APIDataResult<>));
            return services;
        }
    }
}
